Optimal. Leaf size=179 \[ -\frac {b c \sqrt {d+e x^2}}{6 d x^2}-\frac {\sqrt {d+e x^2} (a+b \text {ArcTan}(c x))}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} (a+b \text {ArcTan}(c x))}{3 d^2 x}+\frac {b c \left (2 c^2 d+3 e\right ) \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{6 d^{3/2}}-\frac {b \sqrt {c^2 d-e} \left (c^2 d+2 e\right ) \tanh ^{-1}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{3 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 179, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {277, 270, 5096,
12, 587, 154, 162, 65, 214} \begin {gather*} \frac {2 e \sqrt {d+e x^2} (a+b \text {ArcTan}(c x))}{3 d^2 x}-\frac {\sqrt {d+e x^2} (a+b \text {ArcTan}(c x))}{3 d x^3}+\frac {b c \left (2 c^2 d+3 e\right ) \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{6 d^{3/2}}-\frac {b \sqrt {c^2 d-e} \left (c^2 d+2 e\right ) \tanh ^{-1}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{3 d^2}-\frac {b c \sqrt {d+e x^2}}{6 d x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 65
Rule 154
Rule 162
Rule 214
Rule 270
Rule 277
Rule 587
Rule 5096
Rubi steps
\begin {align*} \int \frac {a+b \tan ^{-1}(c x)}{x^4 \sqrt {d+e x^2}} \, dx &=-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}-(b c) \int \frac {\sqrt {d+e x^2} \left (-d+2 e x^2\right )}{3 d^2 x^3 \left (1+c^2 x^2\right )} \, dx\\ &=-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}-\frac {(b c) \int \frac {\sqrt {d+e x^2} \left (-d+2 e x^2\right )}{x^3 \left (1+c^2 x^2\right )} \, dx}{3 d^2}\\ &=-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}-\frac {(b c) \text {Subst}\left (\int \frac {\sqrt {d+e x} (-d+2 e x)}{x^2 \left (1+c^2 x\right )} \, dx,x,x^2\right )}{6 d^2}\\ &=-\frac {b c \sqrt {d+e x^2}}{6 d x^2}-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}-\frac {(b c) \text {Subst}\left (\int \frac {\frac {1}{2} d \left (2 c^2 d+3 e\right )+\frac {1}{2} e \left (c^2 d+4 e\right ) x}{x \left (1+c^2 x\right ) \sqrt {d+e x}} \, dx,x,x^2\right )}{6 d^2}\\ &=-\frac {b c \sqrt {d+e x^2}}{6 d x^2}-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}+\frac {\left (b c \left (c^2 d-e\right ) \left (c^2 d+2 e\right )\right ) \text {Subst}\left (\int \frac {1}{\left (1+c^2 x\right ) \sqrt {d+e x}} \, dx,x,x^2\right )}{6 d^2}-\frac {\left (b c \left (2 c^2 d+3 e\right )\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right )}{12 d}\\ &=-\frac {b c \sqrt {d+e x^2}}{6 d x^2}-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}+\frac {\left (b c \left (c^2 d-e\right ) \left (c^2 d+2 e\right )\right ) \text {Subst}\left (\int \frac {1}{1-\frac {c^2 d}{e}+\frac {c^2 x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{3 d^2 e}-\frac {\left (b c \left (2 c^2 d+3 e\right )\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{6 d e}\\ &=-\frac {b c \sqrt {d+e x^2}}{6 d x^2}-\frac {\sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d x^3}+\frac {2 e \sqrt {d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{3 d^2 x}+\frac {b c \left (2 c^2 d+3 e\right ) \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{6 d^{3/2}}-\frac {b \sqrt {c^2 d-e} \left (c^2 d+2 e\right ) \tanh ^{-1}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{3 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.38, size = 372, normalized size = 2.08 \begin {gather*} -\frac {\frac {\sqrt {d+e x^2} \left (b c d x+2 a \left (d-2 e x^2\right )\right )}{x^3}+\frac {2 b \left (d-2 e x^2\right ) \sqrt {d+e x^2} \text {ArcTan}(c x)}{x^3}+b c \sqrt {d} \left (2 c^2 d+3 e\right ) \log (x)-b c \sqrt {d} \left (2 c^2 d+3 e\right ) \log \left (d+\sqrt {d} \sqrt {d+e x^2}\right )+\frac {b \left (c^4 d^2+c^2 d e-2 e^2\right ) \log \left (\frac {12 c d^2 \left (c d-i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} \left (c^4 d^2+c^2 d e-2 e^2\right ) (i+c x)}\right )}{\sqrt {c^2 d-e}}+\frac {b \left (c^4 d^2+c^2 d e-2 e^2\right ) \log \left (\frac {12 c d^2 \left (c d+i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} \left (c^4 d^2+c^2 d e-2 e^2\right ) (-i+c x)}\right )}{\sqrt {c^2 d-e}}}{6 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int \frac {a +b \arctan \left (c x \right )}{x^{4} \sqrt {e \,x^{2}+d}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.72, size = 936, normalized size = 5.23 \begin {gather*} \left [\frac {{\left (b c^{2} d x^{3} + 2 \, b x^{3} e\right )} \sqrt {c^{2} d - e} \log \left (\frac {8 \, c^{4} d^{2} - 4 \, {\left (2 \, c^{3} d + {\left (c^{3} x^{2} - c\right )} e\right )} \sqrt {c^{2} d - e} \sqrt {x^{2} e + d} + {\left (c^{4} x^{4} - 6 \, c^{2} x^{2} + 1\right )} e^{2} + 8 \, {\left (c^{4} d x^{2} - c^{2} d\right )} e}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + {\left (2 \, b c^{3} d x^{3} + 3 \, b c x^{3} e\right )} \sqrt {d} \log \left (-\frac {x^{2} e + 2 \, \sqrt {x^{2} e + d} \sqrt {d} + 2 \, d}{x^{2}}\right ) - 2 \, {\left (b c d x - 4 \, a x^{2} e + 2 \, a d - 2 \, {\left (2 \, b x^{2} e - b d\right )} \arctan \left (c x\right )\right )} \sqrt {x^{2} e + d}}{12 \, d^{2} x^{3}}, -\frac {2 \, {\left (b c^{2} d x^{3} + 2 \, b x^{3} e\right )} \sqrt {-c^{2} d + e} \arctan \left (-\frac {{\left (2 \, c^{2} d + {\left (c^{2} x^{2} - 1\right )} e\right )} \sqrt {-c^{2} d + e} \sqrt {x^{2} e + d}}{2 \, {\left (c^{3} d^{2} - c x^{2} e^{2} + {\left (c^{3} d x^{2} - c d\right )} e\right )}}\right ) - {\left (2 \, b c^{3} d x^{3} + 3 \, b c x^{3} e\right )} \sqrt {d} \log \left (-\frac {x^{2} e + 2 \, \sqrt {x^{2} e + d} \sqrt {d} + 2 \, d}{x^{2}}\right ) + 2 \, {\left (b c d x - 4 \, a x^{2} e + 2 \, a d - 2 \, {\left (2 \, b x^{2} e - b d\right )} \arctan \left (c x\right )\right )} \sqrt {x^{2} e + d}}{12 \, d^{2} x^{3}}, -\frac {2 \, {\left (2 \, b c^{3} d x^{3} + 3 \, b c x^{3} e\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d}}{\sqrt {x^{2} e + d}}\right ) - {\left (b c^{2} d x^{3} + 2 \, b x^{3} e\right )} \sqrt {c^{2} d - e} \log \left (\frac {8 \, c^{4} d^{2} - 4 \, {\left (2 \, c^{3} d + {\left (c^{3} x^{2} - c\right )} e\right )} \sqrt {c^{2} d - e} \sqrt {x^{2} e + d} + {\left (c^{4} x^{4} - 6 \, c^{2} x^{2} + 1\right )} e^{2} + 8 \, {\left (c^{4} d x^{2} - c^{2} d\right )} e}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 2 \, {\left (b c d x - 4 \, a x^{2} e + 2 \, a d - 2 \, {\left (2 \, b x^{2} e - b d\right )} \arctan \left (c x\right )\right )} \sqrt {x^{2} e + d}}{12 \, d^{2} x^{3}}, -\frac {{\left (b c^{2} d x^{3} + 2 \, b x^{3} e\right )} \sqrt {-c^{2} d + e} \arctan \left (-\frac {{\left (2 \, c^{2} d + {\left (c^{2} x^{2} - 1\right )} e\right )} \sqrt {-c^{2} d + e} \sqrt {x^{2} e + d}}{2 \, {\left (c^{3} d^{2} - c x^{2} e^{2} + {\left (c^{3} d x^{2} - c d\right )} e\right )}}\right ) + {\left (2 \, b c^{3} d x^{3} + 3 \, b c x^{3} e\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d}}{\sqrt {x^{2} e + d}}\right ) + {\left (b c d x - 4 \, a x^{2} e + 2 \, a d - 2 \, {\left (2 \, b x^{2} e - b d\right )} \arctan \left (c x\right )\right )} \sqrt {x^{2} e + d}}{6 \, d^{2} x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \operatorname {atan}{\left (c x \right )}}{x^{4} \sqrt {d + e x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+b\,\mathrm {atan}\left (c\,x\right )}{x^4\,\sqrt {e\,x^2+d}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________